import request from '@/utils/request'

/**
 * 获取列表数据
 */
export const getAdvImgListApi = data => {
  return request({
    method: 'get',
    url: '/ydd_advimg/list',
    params: data
  })
}

/**
 * 删除
 */
export const delAdvImgtApi = id => {
  return request({
    method: 'get',
    url: `/ydd_advimg/del?id=${id}`
  })
}

/**
 * 新增
 */
export const addAdvImgtApi = data => {
  return request({
    method: 'post',
    url: '/ydd_advimg/add',
    data
  })
}

/**
 * 数据回显
 */

export const getAdvImgDetailApi = id => {
  return request({
    method: 'get',
    url: `/ydd_advimg/rowInfo?id=${id}`
  })
}
/**
 * 修改
 */
export const editAdvImgApi = data => {
  return request({
    method: 'post',
    url: '/ydd_advimg/update',
    data
  })
}
